package com.fire.convert;

import com.fire.api.dto.AppDTO;
import com.fire.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author fire
 * @date 2021年07月18日12:11
 */
@Mapper
public interface AppConvert {
   AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

   App dto2entity(AppDTO appDTO);
   AppDTO entiity2Dto(App app);
   List<AppDTO> listEntity2Dto(List<App>appList);
}
